﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;

namespace MLO
{
    public class Slot : ISlot
    {
        public Slot(string name)
        {
            Name = name;
        }

        public string ID { get; set; }
        public string Name { get; set; }
        public string FrameID { get; set; }

        public string _domainID;
        public Domain _domain;
        public Domain Domain
        { get { return _domain; } }
        public string DomainID
        {
            get { return _domainID; }
            set
            {
                _domain = new Domain(value);
                _domainID = value;
            }
        }
        public object Default { get; set; }
        public TypeInherit Inherit { get; set; }
        public string Marker { get; set; }
        public string Question { get; set; }
        public bool Necess { get; set; }
        public SlotType Type { get; set; }

        public IFrame Subframe { get; set; }

        public string FullName
        { get { return FrameID + "." + Name; } }
        public Production Production { get; set; }
    }
}
